package com.lingnan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingnan.entity.po.JobFavorite;

import java.util.List;
import java.util.Map;

public interface JobFavoriteService extends IService<JobFavorite> {
    
    /**
     * 添加收藏
     */
    void addFavorite(Long seekerId, Long positionId);
    
    /**
     * 取消收藏
     */
    void removeFavorite(Long seekerId, Long positionId);
    
    /**
     * 检查是否已收藏
     */
    boolean isFavorited(Long seekerId, Long positionId);
    
    /**
     * 获取收藏列表
     */
    List<Map<String, Object>> getFavoriteList(Long seekerId);
    
    /**
     * 批量取消收藏
     */
    void batchRemoveFavorites(Long seekerId, List<Long> positionIds);
}